package com.wenbo.fish.web;

import com.wenbo.fish.job.SpiderJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Slf4j
@Controller
public class BasicController {

    @Autowired
    private SpiderJob job;

    @RequestMapping("/")
    @ResponseBody
    public String hello() {
        log.info("hello world");


        job.process();


        return "Hello World";
    }
}
